module.exports = {
    baseUrl: './',
    assetsDir: 'static',
    productionSourceMap: false,
    devServer: {
        port:8000,
        // 配置代理
        proxy: {
            '/api': {
                target: 'https://api.bimface.com/oauth2/token',
                changeOrigin: true,
                pathRewrite: { '^/api': '' }
            },
            // '/view': {
            //     target: 'https://api.bimface.com/view/token',
            //     changeOrigin: true,
            //     pathRewrite: { '^/view': '' }
            // }
        }
    }
    // https://blog.csdn.net/wh_xmy/article/details/87705840 跨域
};
